package com.foo.Entity;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

public class RealTimeData implements Serializable
{

	private static final long serialVersionUID = 1L;
	
	
	private String ticker_symbol;
	private double open_value;
	private double high_value;
	private double low_value;
	private double close_value;
	private long volume;
	private double perc_change;
	private Timestamp currentdate;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public void setTicker_symbol(String ticker_symbol) {
		this.ticker_symbol = ticker_symbol;
	}
	public String getTicker_symbol() {
		return ticker_symbol;
	}
	public void setOpen_value(double open_value) {
		this.open_value = open_value;
	}
	public double getOpen_value() {
		return open_value;
	}
	public void setHigh_value(double high_value) {
		this.high_value = high_value;
	}
	public double getHigh_value() {
		return high_value;
	}
	public void setLow_value(double low_value) {
		this.low_value = low_value;
	}
	public double getLow_value() {
		return low_value;
	}
	public void setClose_value(double close_value) {
		this.close_value = close_value;
	}
	public double getClose_value() {
		return close_value;
	}
	public void setVolume(long volume) {
		this.volume = volume;
	}
	public long getVolume() {
		return volume;
	}
	public void setPerc_change(double perc_change) {
		this.perc_change = perc_change;
	}
	public double getPerc_change() {
		return perc_change;
	}
	public void setCurrentdate(Timestamp currentdate) {
		this.currentdate = currentdate;
	}
	public Timestamp getCurrent_date() {
		return currentdate;
	}
	public RealTimeData()
	{
		
	}
	public RealTimeData( String ticker_symbol,double open_value,double high_value,double low_value,double close_value,long volume,Timestamp currentdate,double perc_change,int id)
	{
		this.id=id;
		this.ticker_symbol=ticker_symbol;
		this.open_value=open_value;
		this.high_value=high_value;
		this.low_value=low_value;
		this.close_value=close_value;
		this.volume=volume;
		this.perc_change=perc_change;
		this.currentdate=currentdate;
	}
}
